package com.lagou.service.impl;

import com.lagou.SayHelloService;
import org.apache.dubbo.config.annotation.Service;

import java.util.Random;

@Service
public class SyaHelloServiceImpl implements SayHelloService {

    @Override
    public String sayHello(String name) {
        return "欢迎2号「"+name+"」进入";
    }

    @Override
    public String sayHello1(String name) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "sayHello1"+name;
    }

    @Override
    public String sayHello2(String name) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "sayHello2"+name;
    }

    @Override
    public String sayHello3(String name) {
        try {
            Thread.sleep(new Random().nextInt(100));
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return "sayHello3"+name;
    }
}
